<style>
    .tssMemberCheckDialog .modal-dialog{
        width: 80%;
    }
    .bootbox-close-button {
        width: 19px;
        height: 19px;
        border: none;
        cursor: pointer;
        -webkit-appearance: none;
        float: right;
        top: 4px;
        left: -5px;
        position: relative;
        background: #E9F5FF url("assets/img/nav-img/icon_close.png") no-repeat 0 0;
    }

    #edui_fixedlayer {
        z-index: 3000 !important;
    }
    .form-group {
        overflow: hidden;
    }
</style>
<link href="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/themes/default/css/ueditor.css" type="text/css" rel="stylesheet">
<script src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/third-party/codemirror/codemirror.js" type="text/javascript" defer="defer"></script>
<link rel="stylesheet" type="text/css" href="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/third-party/codemirror/codemirror.css">
<script src="assets/js/datatable/ZeroClipboard.js" type="text/javascript" defer="defer"></script>
<div class="row">
    <form class="editForm" style="margin-top: 15px" action="${saveUrl}" method="post" responseType="JSON" role="form"
          id="editForm_${serializeNum}"
          data-bv-submitButtons="#editFormSubmitBtn_${serializeNum}"
          data-bv-message="This value is not valid"
          data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
          data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
          data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">


        <div>
            <div style="padding: 20px;text-align: center">您好，欢迎提出宝贵意见，您留下的每个字都将被用来改善我们的服务。</div>
            <div class="form-group">
                <label for="title" class="col-sm-2 control-label">*标题：</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="title" name="title">
                </div>
            </div>
            <div class="form-group">
                <label for="container" class="col-sm-2 control-label">*反馈内容：</label>
                <div class="col-sm-8">
                    <script id="container" name="content" type="text/plain"></script>
                    <script type="text/javascript" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/ueditor.config.js"></script>
                    <script type="text/javascript" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/editor_api.js"></script>
                    <script type="text/javascript" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/ueditor.all.js"></script>
                    <script type="text/javascript" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/third-party/zeroclipboard/ZeroClipboard.js"></script>
                    <script type="text/javascript" charset="utf-8" src="assets/js/editors/ueditor1_4_3_utf8-jsp/utf8-jsp/lang/zh-cn/zh-cn.js"></script>
                    <script type="text/javascript">
                        var ue = UE.getEditor('container');
                        var lang = ue.getOpt('lang'); //默认返回：zh-cn

                    </script>
                    <!--<textarea id="content" name="content" class="form-control" id="feedbackCentent" style="resize: none"></textarea>-->
                </div>
            </div>
            <div class="form-group">
                <label for="phone" class="col-sm-2 control-label">联系方式：</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" id="phone" name="phone">
                </div>
            </div>
        </div>
        <div class="col-sm-12 margin-top-20">
            <div class="text-align-center">
                <button style="width: 80px;margin-right: 20px" type="button" class="btn btn-blue" onclick="comments()">确定</button>
                <input style="width: 80px" type="button" class="btn btn-blue" data-dismiss="modal" value="取消"/>
            </div>
        </div>
    </form>
</div>
<script>

    /**
     * 提交
     * @param that
     * @constructor
     */

    function comments() {
        var title = $("#title").val();
        var content = ue.getContent();
        var phone = $("#phone").val();

        if(!title){
            alert("请填写标题");
        } else if(!content) {
            alert("请填写反馈内容");
        } else if(!phone){
            alert("请填写联系方式");
        } else {
            ajaxRequest("TssFeedbackController/comments.do", {
                title: title,
                content: content,
                phone: phone
            }, function (data) {
                alert(data.resMsg)
            }, function () {
                ajaxError("加载页面失败!")
            }, "GET", "json")
        }
    }

</script>